<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{$title}-{$Think.lang.web_name}</title>
    {include file="comm/header"/}
</head>
<body>
{include file="comm/left_menu"/}
{include file="comm/top_menu"/}
<div class="container main">
    <div class="col-sm-12 border-bottom text-right"><a class="btn btn-primary mgr-10" href="/system/menu_list/id/{$menu._menu_id}"><i class="fa fa-list-ul"></i>&nbsp;{$Think.lang.menu_list}</a></div>

    <div class="col-sm-12">
        <div class="col-sm-12"> &nbsp;</div>
        <form class="form-horizontal" method="post" action="/system/menu_save/">

            <div class="form-group">
                <label class="col-sm-3 control-label">菜单名称</label>
                <div class="col-sm-3">
                    <input class="form-control" name="menu_title" value="{$menu.menu_title}">
                </div>
                <small class="col-sm-4 form-tips">汉字</small>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">上级菜单</label>
                <div class="col-sm-3">
                    <select class="form-control" name="menu_pid">
                        <option value="0">{$Think.lang.select}</option>
                        {if isset($menu_list)}
                        {foreach name="$menu_list" key="key" id="v" index="i"}
                        <option value="{$v.menu_id}" {if in_array($v.menu_id,[$menu.menu_pid])} selected{/if}>{$v.menu_title}({$v.menu_name})</option>
                        {/foreach}
                        {/if}
                    </select>
                </div>
                <small class="col-sm-4 form-tips"></small>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">跳转链接</label>
                <div class="col-sm-3">
                    <input class="form-control" name="menu_name" value="{$menu.menu_name}">
                </div>
                <small class="col-sm-6 form-tips">唯一，顶级用控制器名，子级用方法名或，控制器名/方法名,(控制器名要跟顶级控制器名一样)</small>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">图标</label>
                <div class="col-sm-3">
                    <input class="form-control" name="menu_icon" value="{$menu.menu_icon}">
                </div>
                <small class="col-sm-4 form-tips">预览：<i id="icon" class="fa fa-bars"></i>　　<a href="http://www.fontawesome.com.cn/faicons/" target="_blank">更多图标&gt;&gt;</a></small>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">{$Think.lang.menu_order}</label>
                <div class="col-sm-3">
                    <input type="number" class="form-control" name="menu_order" value="{$menu.menu_order}">
                </div>
                <small class="col-sm-4 form-tips">越大越靠前</small>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">{$Think.lang.menu_show}</label>
                <div class="col-sm-3">

                    <label class="s-label-radio">
                        <input type="radio" id="menu_show_0" class="radio radio-inline" name="menu_show" value="0" {if in_array($menu.menu_show,[0])}checked{/if} >
                        <label class="fa fa-check" for="menu_show_0"></label> 隐藏
                    </label>
                    <label class="s-label-radio">
                        <input type="radio" id="menu_show_1" class="radio radio-inline" name="menu_show" value="1" {if in_array($menu.menu_show,[1,''])}checked{/if}>
                        <label class="fa fa-check" for="menu_show_1"></label> 显示
                    </label>
                </div>
                <small class="col-sm-4 form-tips"></small>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">{$Think.lang.menu_status}</label>
                <div class="col-sm-3">
                    <label class="s-label-radio">
                        <input type="radio" id="menu_status_0" class="radio radio-inline" name="menu_status" value="0" {if in_array($menu.menu_status,[0])}checked{/if}>
                        <label class="fa fa-check" for="menu_status_0"></label> 禁用
                    </label>
                    <label class="s-label-radio">
                        <input type="radio" id="menu_status_1" class="radio radio-inline" name="menu_status" value="1" {if in_array($menu.menu_status,[1,""])}checked{/if}>
                        <label class="fa fa-check" for="menu_status_1"></label> 允许
                    </label>
                </div>
                <small class="col-sm-4 form-tips"></small>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label"></label>
                <div class="col-sm-3">
                    <input type="hidden" name="menu_id" value="{$menu.menu_id}">
                    <input type="hidden" name="menu_org_type" value="0">
                    <input type="hidden" name="menu_org_id" value="1">
                    <input type="hidden" name="token" value="">
                    <button class="btn btn-primary" type="submit">提交保存</button>
                </div>
                <small class="col-sm-4 form-tips"></small>
            </div>

        </form>
    </div>
</div>
{include file="comm/footer"/}
<script type="text/javascript">


</script>
</body>
</html>